package com.wholesale.utils;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.wholesale.R;

public class CategoriesCache {
	private View baseView;
	private TextView textView;
	private ImageView imageView;
	
	public CategoriesCache(View baseView) {
		this.baseView = baseView;
	}
	
	public TextView getTextView(){
		if(textView == null){
			textView = (TextView)baseView.findViewById(R.id.categoriesitem_text);
		}
		return textView ;
	}
	public ImageView getImageView(){
		if(imageView == null){
			imageView = (ImageView)baseView.findViewById(R.id.categoriesitem_image);
		}
		return imageView ;
	}
}
